﻿using Jay.Sc2.Bof.Lib.State;

namespace Jay.Sc2.Bof.Lib.Action.Protoss
{
	public class ActionProduceNexus : ActionProduceFromProbe
	{

		public static ActionProduceNexus Instance = new ActionProduceNexus();

		private ActionProduceNexus() : base(100, 400, 0) { }

		public override ProtossState.ProtossBuilding GetBuilding(ProtossState state) { return state.Nexus; }
		public override string EventName { get { return "ActionSpawnNexus"; } }
		public override bool HaveTechnology(IBuildOrder bo) { return true; }
		public override void OnProductionFinished(IBuildOrder bo)
		{
			ProtossState state = bo.State as ProtossState;
			base.OnProductionFinished(bo);
			state.Nexus_Energy.Add(50.0);

		}
	}
}
